			$(document).ready(function() {	
				
				
				jQuery(function(){
					jQuery('.myzoom').click(function(){
						jQuery(this).children('img').stop(true,true)
						.animate({width:"200%",height:"200%",left:"0px",top:"0"}, 500);
					});
				});    
 
				
				jQuery(function(){
					jQuery('.myzoom').mouseout(
						function(){
						$(this).children('img').stop(true,true)
						.animate({width:"100%",height:"100%",left:"0",top:"0"}, 500);
					});
				});   



			
				$('.elm').hover(
					function(){ $(this).addClass('hover') },
					function(){ $(this).removeClass('hover') }
				);
				
				$('tr:even').css("background", "blue");
				
				$('#LinkFone').dblclick(function(){
					alert("Double-click any links with # yellow background");
					$("[href ^= #]").css('background', '#fc0');
				})
				
				
				var positionX = 0;
				var positionY = 0;
				
				$("#but1").click(function(){
					
					var min = 1, max = 4;
					var rand = min - 0.5 + Math.random()*(max-min+1);
					rand = Math.round(rand);
					

					if (rand == 1){
	
						positionX += 30;
						$("#but1").animate({left:positionX + "px"  },500);
						
						
					}
					if (rand == 2){
					
						positionX -= 30;
						$("#but1").animate({left:positionX + "px"  },500);
						
					}
					if (rand == 3){
					
						positionY += 30;
						$("#but1").animate({top:positionY + "px"  },500);
						
						
					}
					if (rand == 4){
						
						positionY -= 30;
						$("#but1").animate({top:positionY + "px"  },500);
						
					}
					  
				    });
			});
			
